package com.example.scala.chapter3

/**
 *
 * Description:
 *
 * Create by lucienoz on 2021/10/15.
 * Copyright © 2021 lucienoz. All rights reserved.
 */
object chapter05 {
  def main(args : Array[String]) : Unit = {
    val A : Int = 1
    val B : Int = 0

    println ( A == B )

    val foo : String = "foo"
    val bar : String = "bar"

    println ( foo.equals ( bar ) ) //非简写方式
    println ( foo equals bar ) //简写方式

  }

}
